<?php
// .-----------------------------------------------------------------------------------
// | WE TRY THE BEST WAY
// |-----------------------------------------------------------------------------------
// | Author: 贝贝 <hebiduhebi@163.com>
// | Copyright (c) 2013-2016 杭州博也网络科技, http://www.itboye.com. All Rights Reserved.
// |-----------------------------------------------------------------------------------


namespace Shop\Api;

use Common\Api\Api;
use Shop\Model\MadeOrderModel;

class MadeOrderApi extends Api
{

    /**
     * 查询包含订单相关的信息，订单商品，
     */
    const QUERY_ALL_INFO = "Shop/MadeOrder/queryAllInfo";
    /**
     * 假删除
     */
    const PRETEND_DELETE = "Shop/MadeOrder/pretendDelete";
    /**
     * 添加
     */
    const COUNT = "Shop/MadeOrder/count";


    const SUM="Shop/MadeOrder/sum";
    /**
     * 查询，不分页
     */
    const QUERY_NO_PAGING = "Shop/MadeOrder/queryNoPaging";
    /**
     * 添加
     */
    const ADD = "Shop/MadeOrder/add";
    /**
     * 保存
     */
    const SAVE = "Shop/MadeOrder/save";
    /**
     * 保存根据ID主键
     */
    const SAVE_BY_ID = "Shop/MadeOrder/saveByID";

    /**
     * 删除
     */
    const DELETE = "Shop/MadeOrder/delete";

    /**
     * 查询
     */
    const QUERY = "Shop/MadeOrder/query";
    /**
     * 查询一条数据
     */
    const GET_INFO = "Shop/MadeOrder/getInfo";

    /**
     * 统计指定商品的月销量
     */
    const MONTHLY_SALES = "Shop/MadeOrder/monthlySales";
    /**
     * 添加订单信息
     */
    const ADD_ORDER = "Shop/MadeOrder/addOrder";
    /**
     * 更新订单状态
     */
    const SAVE_PAY_STATUS = "Shop/MadeOrder/savePayStatus";

    /*
   * 查询买到的所有商品的订单信息
   * */
    const SELECT_SELL_ORDER = "Shop/MadeOrder/selectSellOrder";


    protected function _init()
    {
        $this->model = new MadeOrderModel();
    }




}
